#ifndef COMMOND_H_INCLUDED
#define COMMOND_H_INCLUDED

#include "config.h"
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <time.h>
#include <utmpx.h>
#include <sys/types.h>
#include <sys/msg.h>
#include <sys/shm.h>
#include <sys/sem.h>
#include <sys/socket.h>
#include <sys/signal.h>
#include <netdb.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include "time.h"
#include "util.h"
#include "log.h"

#ifndef MIN
#define MIN(A,B) ((A)<(B)?(A):(B))
#endif

#ifndef MAX
#define MAX(A,B) ((A)>(B)?(A):(B))
#endif

#define VERIFY(b) Verify((0) || (b) , NULL , __FILE__ , __LINE__ )
#define ASSERT(b) if (VERIFY(b)) ; else return -1;
#define ASSERTEXT(b,c) if (VERIFY(b)) ; else return (c);

int Verify(int bStatus,const char *pszInfo,const char *pszFilem, int nLine);


#endif // COMMOND_H_INCLUDED
